﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FluentNHibernate.Mapping;
using IapService.Entity;

namespace IapService.Mappings
{
    public class InstanceLiteMap : ClassMap<InstanceLite>
    {
        public InstanceLiteMap()
        {
            Not.LazyLoad();

            Id(x => x.Id);
            Map(x => x.Name);

            HasOne(x => x.Report)
                .Constrained()
                .ForeignKey("FK_ir_report")
                ;
            Table("instance");
        }
    }
}